package cn.xing.managementSystem.enums;

/**
 * @author cuixing
 * @package cn.xing.managementSystem.enums
 * @class CourseType
 * @email xing.cui@magicwindow.cn
 * @date 2018/4/24 上午10:33
 * @description
 */
public enum CourseType {

    KJZS(10, "会计专硕MPAcc"),
    JRZS(20, "金融专硕"),
    JJXLK(30, "经济学联考");

    public Integer value;
    public String name;

    CourseType(Integer value, String name){
        this.value = value;
        this.name = name;
    }

    public static CourseType getCourseTypeById(Integer id){
        for(CourseType courseType : CourseType.values()){
            if(courseType.ordinal() == id){
                return courseType;
            }
        }
        return null;
    }

}